package com.xinxin.blockchain.dto;

import com.xinxin.blockchain.enums.MsgCodeTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author ys
 * @date 2021/5/20
 */
@ApiModel("发送短信验证码")
@Data
public class SmsCodeDTO implements Serializable {

    private static final long serialVersionUID = 8184487531228465681L;

    @ApiModelProperty(value = "国家号码", required = true)
    @NotNull
    private Integer countryCode;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank
    private String mobile;

    @ApiModelProperty(value = "类型", required = true)
    @NotNull
    private MsgCodeTypeEnum type;
}
